package com.xuecheng.order;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@Slf4j
@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan(basePackages = {
        "com.xuecheng.order",
        "com.xuecheng.web",
        "com.xuecheng.mybaits",
})
@MapperScan("com.xuecheng.order.mappers")
@EnableFeignClients(basePackages = "com.xuecheng.*.api")
@EnableScheduling  //开启定时任务
public class OrderApplication  {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
        log.warn("项目已经启动！");
    }
}
